<?php
namespace app\shop\model;

use cubox\Model;

class MemberLevel extends Model{
    
    public function defineType(){
        return [
            'default' => '默认会员',
            'consume' => '消费会员',
            'special' => '特殊会员',
        ];
    }

    public function getTypeTitle($type){
        return $this->defineType()[$type]??'';
    }
}